<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>js函数</title>
		<script>
			function sayHello(){
				for(var i=0;i<10;i++)
					document.write("<h1>大扎好，你是渣渣</h1>");
			}
			function add(a,b){
				return a+b;
			}
			var c1=add(10,5);
			alert(c1);
			var c2=add("nihao","lihuayin");
			alert(c2);
		</script>
	</head>
	<body>
		<div><button type="button" onclick="sayHello()">点击问好</button></div>
	</body>
</html>
